package com.lanou3g.ptp.teacher.mapper;

import com.lanou3g.ptp.entity.Teacher;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author: Wu Junfeng
 * @Date: 2019/6/11 14:58
 */
@Mapper
public interface TeacherMapper {

    void add(Teacher teacher);

    List<Teacher> search();

    List<Teacher> findByKeyword(String keyword);

    void minus(Long id);

    Teacher findById(Long id);

    void update(Long id);

    void deleteByIds(Long[] ids);

    List<Teacher> getData(Long[] ids);

    void insert(List<Teacher> teachers);

    List<Teacher> findByIdAndType(Long teacherId);
}
